<?php

namespace App\Models\V1;

use Illuminate\Database\Eloquent\Factories\HasFactory;

class VoteClass extends BaseModel
{
    use HasFactory;

    protected $connection;
    protected $table = 'wy_vote_class';
    protected $fillable=['id','title','code','remark','state'];



    public function __construct(array $attributes = [])
    {
        parent::__construct($attributes);
        $this->connection = config('database.connections.wuye.database');
    }

    /**
     * 状态
     * @param $key
     * @return string
     */
    public function getStateAttribute($key)
    {
        return (string) $key;
    }









}
